# $NetBSD: Makefile,v 1.13 2014/12/31 13:58:20 thomasklausner Exp $

DISTNAME=	d-feet-0.1.14
PKGREVISION=	2
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/d-feet/0.1/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-gnome@gmail.com
HOMEPAGE=	https://live.gnome.org/d-feet/
COMMENT=	D-Feet is a powerful dbus debugger
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=	# none

PYTHON_VERSIONS_ACCEPTED=	27 # py-gtk2, py-gobject

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_SED.paths+=	-e 's,/usr/share/dfeet,${PREFIX}/share/dfeet,g'
SUBST_SED.paths+=	-e 's,/usr/share/gnome/dfeet,${PREFIX}/share/gnome/dfeet,g'
SUBST_SED.paths+=	-e 's,/usr/share/dfeet/pixmaps,${PREFIX}/share/dfeet/pixmaps,g'
SUBST_SED.paths+=	-e 's,/usr/share/locale,${PREFIX}/share/locale,g'
SUBST_FILES.paths+=	d-feet${PYVERSSUFFIX}
SUBST_MESSAGE.paths=	Fixing header search paths.

post-extract:
	${MV} ${WRKSRC}/d-feet ${WRKSRC}/d-feet${PYVERSSUFFIX}

.include "../../devel/libwnck/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../devel/py-gobject/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
BUILDLINK_API_DEPENDS.py-dbus+=	${PYPKGPREFIX}-dbus>=0.23.4
.include "../../sysutils/py-dbus/buildlink3.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/omf-scrollkeeper.mk"
.include "../../mk/bsd.pkg.mk"
